package com.thundersoft.mm.phone;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Toast;


public class PhoneActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       // setContentView(R.layout.phone);
        // 蓝牙监听开启
        ConnectionManager.init(getApplicationContext());
    }



/*    public void onClick(View view){
        view.setClickable(false);
        Toast.makeText(this, "下载中", Toast.LENGTH_SHORT).show();
        ConnectionManager.handler.sendEmptyMessageDelayed(0,50);
    }*/

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ConnectionManager.stopWifiP2p();
        ConnectionManager.release();
    }
}
